﻿@model MVC4_Test.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<div class="subheader">
    <h1>You must log in to ask a question</h1>
</div>
<div id="mainbar">

    <div class="page-description">

        <div class="form-error">
            
        </div>

            <form id="openid_form" action="/users/authenticate" method="post">
                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true)

                <div>
                    <noscript>
                        <p>
                            Open ID is a service that allows you to log on to many different websites using a single identity. Find out <a href="http://openid.net/what/">more about OpenId</a> and <a href="http://openid.net/get/">how to get an OpenID-enabled account</a>.

                        </p>
                    </noscript>
                </div>

                <div>
                    
                    <input type="hidden" id="oauth_version" name="oauth_version">
                    <input type="hidden" id="oauth_server" name="oauth_server">

                    
                </div>

                
                <div id="openid_choice">
                    <p class="script-only">
                            Do you already have an account on one of these sites? Click the logo to

                            <i>log in</i> with it here:

                    </p>
                    <div id="openid_btns" class="script-only"></div>
                    <p id="more-options-link" class="script-only">
                        <br>
                        <a>Show more login options …</a></p>
                    <div id="show-more-options">
                        <div id="more-openid-options" class="script-only"></div>

                        
                        <div id="simple-openid-selector">
                            <div id="openid_input_area" class="script-only">
                                <p id="openid_provider_label"></p>
                                <input id="openid_username" type="text" name="openid_username" value="">
                                <input id="openid_submit" type="submit" value="Sign In">
                            </div>
                            <div id="openid-url-input-area">
                                <noscript>
                                    <p class="noscript-notice">Because JavaScript is disabled, you can only log in by entering your OpenID URL manually:</p>
                                </noscript>
                                <p class="script-only">Or, you can manually enter your OpenID</p>
                                <table id="openid-url-input">
                                    <tr>
                                        <td class="vt large">
                                            <input id="openid_identifier" name="openid_identifier" class="openid-identifier" style="height: 28px; width: 500px;" type="text" tabindex="100">
                                        </td>
                                        <td class="vt large">
                                            <input id="submit-button" style="margin-left: 5px; height: 36px;" type="submit" value="Log in" tabindex="101">
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
            <div id="affiliate-signup" class="script-only">
                <p>If you don&#39;t already have an account on any of the above</p>
                <p style="margin-left: 30px; margin-bottom: 30px;">
                    <b style="font-size: 130%">
                        <a onclick="openid.loadSignup()">click here to sign up</a>
                    </b>
                </p>
            </div>
            <noscript>
                <div id="noscript-stackexchange-login">
                    <p>If you already have a Stack Exchange account</p>
                    <div>
                        <form method="post" action="/users/authenticate">
                            <div>
                                <input type="hidden" name="openid_identifier" value="https://openid.stackexchange.com/">
                                <input type="submit" value="click here to sign in" class="noscript-link-button">
                            </div>
                        </form>
                    </div>
                </div>
            </noscript>
            <div id="forgot-password">
                <p>If you&#39;ve forgotten or lost your login information</p>
                <p style="margin-left: 30px; margin-bottom: 30px;"><b style="font-size: 130%"><a href="/users/account-recovery">click here to recover your account</a></b></p>
            </div>
    </div>
</div>

<div id="sidebar">
    <div class="module newuser">
        <h4>Why OpenID?</h4>
        <p>It&#39;s a single username and password that allows you to log in to any OpenID-enabled site.</p>
        <p>It works on thousands of websites.</p>
        <p>It&#39;s an open standard.</p>
        <p class="ar">
            <a href="http://openid.net/what/">learn more &#187;</a><br>
        </p>
        

    </div>
        <div class="module">
            <h4>Use your own URL</h4>
            <p>Want to add OpenID support to <i>your</i> website?</p>
            <p>It&#39;s as easy as adding two HTML header tags!</p>
            <p class="ar">
                <a href="http://blog.stackoverflow.com/2009/01/using-your-own-url-as-your-openid/">see how &#187;</a>
            </p>
        </div>
</div>

<script type="text/template" id="gotAnAccount">
    <div class="module newuser">
        <h4>How to Log In</h4>
        <p>Once you create your Stack Exchange account you can use it to log in to any <a href="http://stackexchange.com/sites">Stack Exchange site</a>.</p>
        <p>To log in, click the &#39;Log in with Stack Exchange&#39; button.</p>
    </div>
</script>

<br class="cbt">


@*
<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

<section id="loginForm">
<h2>Use a local account to log in.</h2>
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Log in Form</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <input type="submit" value="Log in" />
    </fieldset>
    <p>
        @Html.ActionLink("Register", "Register") if you don't have an account.
    </p>
}
</section>

<section class="social" id="socialLoginForm">
    <h2>Use another service to log in.</h2>
    @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
*@